FROM daocloud.io/php:5.6-cli

ADD . /var/www/algorithms

WORKDIR /var/www/algorithms

RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php

RUN php composer-setup.php

RUN php composer.phar config -g repo.packagist composer https://packagist.phpcomposer.com

RUN php composer.phar install

RUN vendor/bin/phpunit --coverage-text

